Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-133481 / 25.04 / Changes for VMs in new virtualization #11323

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

denysbutenko
Copy link
Member

@denysbutenko denysbutenko commented Jan 10, 2025

Changes:

  1. Makes CPU and Memory attributes required again.
  2. Update Disks picker, remove destionation and allows to pick zvols only.
  3. Updated ix-explorer allows to list zvols only.

Testing:

Checks Instance Wizard on Virtualization page.

Downstream

Affects Reasoning
Documentation Instance Wizard changes

@denysbutenko denysbutenko requested a review from a team as a code owner January 10, 2025 12:37
@denysbutenko denysbutenko requested review from RehanY147 and removed request for a team January 10, 2025 12:37
@bugclerk bugclerk changed the title NAS-133481: Changes for VMs in new virtualization NAS-133481 / 25.04 / Changes for VMs in new virtualization Jan 10, 2025
@bugclerk
Copy link
Contributor

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 53.27%. Comparing base (0f70118) to head (1d21cda).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...instance-disk-form/instance-disk-form.component.ts 0.00% 6 Missing ⚠️
...nents/instance-wizard/instance-wizard.component.ts 89.47% 2 Missing ⚠️
src/app/services/filesystem.service.ts 71.42% 2 Missing ⚠️
...details/instance-disks/instance-disks.component.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #11323       +/-   ##
===========================================
- Coverage   82.74%   53.27%   -29.47%     
===========================================
  Files        1654     1654               
  Lines       59135    59158       +23     
  Branches     6218     6225        +7     
===========================================
- Hits        48932    31518    -17414     
- Misses      10203    27640    +17437     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@RehanY147 RehanY147 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CPU and memory field are not required on the instance wizard. You can leave them empty.

@@ -63,6 +63,8 @@ export class InstanceDiskFormComponent implements OnInit {
return !this.isNew() ? this.translate.instant('Edit Disk') : this.translate.instant('Add Disk');
});

protected instance = computed(() => this.slideInRef.getData().instance);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The computed callback doesn't have a signal call. This could just be a signal.
protected instance = signal(this.slideInRef.getData().instance); Or maybe doesn't need to be a signal

@@ -112,7 +117,7 @@ export class InstanceDiskFormComponent implements OnInit {
}

private prepareRequest(): Observable<unknown> {
const instanceId = this.slideInRef.getData().instanceId;
const instanceId = this.slideInRef.getData().instance.id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can reuse the signal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants